package org.bigdata.framework.core.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * <p>
 * 
 * </p>
 *
 * @author dal.anhuifeng
 * @since 2017-04-18
 */
@TableName("common_object_property")
public class CommonObjectProperty implements Serializable {

    private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId(type = IdType.AUTO)
	private Integer id;

	/**
	 * 英文名称
	 */
	@TableField(value="name_en")
	private String nameEn;

	/**
	 * 中文名称
	 */
	@TableField(value="name_zh")
	private String nameZh;

	/**
	 * 字段名称（存储和Solr使用）
	 */
	private String field;

	/**
	 * 是否多值 （默认true）
	 */
	@TableField(value="multi_valued")
	private String multiValued;

	/**
	 * 是否必填 （默认false）
	 */
	private String required;

	/**
	 * 是否内容存储（默认true）
	 */
	private String stored;

	/**
	 * 是否建立索引（默认true）
	 */
	private String indexed;

	/**
	 * 是否用作“more like this和highlight的特性”
	 */
	@TableField(value="term_vectors")
	private String termVectors;

	/**
	 * 排序
	 */
	private Integer sort;



	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getNameEn() {
		return nameEn;
	}

	public void setNameEn(String nameEn) {
		this.nameEn = nameEn;
	}

	public String getNameZh() {
		return nameZh;
	}

	public void setNameZh(String nameZh) {
		this.nameZh = nameZh;
	}

	public String getField() {
		return field;
	}

	public void setField(String field) {
		this.field = field;
	}

	public String getMultiValued() {
		return multiValued;
	}

	public void setMultiValued(String multiValued) {
		this.multiValued = multiValued;
	}

	public String getRequired() {
		return required;
	}

	public void setRequired(String required) {
		this.required = required;
	}

	public String getStored() {
		return stored;
	}

	public void setStored(String stored) {
		this.stored = stored;
	}

	public String getIndexed() {
		return indexed;
	}

	public void setIndexed(String indexed) {
		this.indexed = indexed;
	}

	public String getTermVectors() {
		return termVectors;
	}

	public void setTermVectors(String termVectors) {
		this.termVectors = termVectors;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

}
